package com.tcm.logistics.service;

import com.tcm.logistics.entity.LogisticsPickupPoint;

import java.util.List;

public interface LogisticsPickupPointService {

    /**
     * 删除
     * @param id
     * @param shopId
     * @return
     */
    int deleteByKey(Long id, Long shopId);

    /**
     * 逻辑删除
     * @param id
     * @param shopId
     * @return
     */
    int deleteLogicByKey(Long id, Long shopId);

    /**
     * 新增
     * @param record
     * @return
     */
    int create(LogisticsPickupPoint record);

    /**
     * 查询自提点
     * @param id
     * @param shopId
     * @return
     */
    LogisticsPickupPoint findByKey(Long id, Long shopId);

    /**
     * 查询自提点列表
     * @param shopId
     * @return
     */
    List<LogisticsPickupPoint> listPickupPoint(Long shopId);

    /**
     * 更新自提点
     * @param record
     * @return
     */
    int updateByKey(LogisticsPickupPoint record);
}
